export default {
  mounted(el, bindings) {
    //自定义指令的目的 操作原生dom
        // console.log(el,bindings.value);
        const OnRemoveBtn = el.querySelector('.remove-btn');
        var {cellData,weekday,timeSlot} =bindings.value;
        OnRemoveBtn.addEventListener('click', handleRemovePanel,false);

        function handleRemovePanel() {
            delete cellData[`${weekday}-${timeSlot}`];
        }
    }
}